package com.dmpp.mes.controller;


import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.parameterInfo.Stock;
import com.dmpp.mes.service.StockService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("Stock")
public class StockController {
    //中间库 出库
    @Autowired
    private StockService service;


    @RequestMapping(value = "/FindAll", method = RequestMethod.POST)
    @ResponseBody
    public ResponseData findAll(Integer page, Integer pageSize,Stock stock) {
        PageHelper.startPage(page, pageSize);
        return service.findAll(stock);
    }


}
